<?php
function getCurrentUrl() {
	$domain = $_SERVER['HTTP_HOST'];
	$url = "http://" . $domain . $_SERVER['REQUEST_URI'];
	return $url;
}
?>